#include "Material.h"
#include "ResourceManager.h"

Material::Material(std::vector<Texture*> textures, const std::string& shaderName)
{
	m_MaterialShader = ResourceManager::FindShader(shaderName);
	m_MaterialTextures = textures;

	SDL_Log("Createing Material:\n");
	SDL_Log("\tShader:%s", m_MaterialShader->m_ShaderName.c_str());
	SDL_Log("\tTextures:\n");
	for (auto tex : textures)
		SDL_Log("\t\t%s", tex->m_TextureName.c_str());


}

Material::~Material()
{
	for (auto matUbo : m_MaterialUniformBuffers)
		delete matUbo;
}
